package cn.sunlelin.educationserver.service;

import cn.sunlelin.educationserver.entity.AttendCourse;
import com.github.pagehelper.Page;

import java.util.List;
import java.util.Map;

public interface AttendCourseService {
    public Boolean createAttendCourse(AttendCourse attendCourse);
    public Boolean updateAttendCourse(AttendCourse attendCourse);
    public Map<String,Object> selectAttendCourse(AttendCourse attendCourse);

    Map<String, Object> selectAttendCourseAndName(AttendCourse attendCourse);

    List<Map<String,Object>> selectAttendByUserId(Integer userId);

    Page<Map<String,Object>> getPageCourseByUserId(Integer currentPage, Integer pageSize, Integer userId);

    public Boolean deleteAttendCourse(AttendCourse attendCourse);
}
